html,
body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
// header
.header {
  padding: 6px 14px;
  background-color: #c34943;
  .header-wrap {
    padding: 0 6px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    height: 36px;
    .icon-sousuo {
      margin-right: 4px;
    }
    .header-text {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}

// navbar
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  font-size: 16px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  .nav-left {
    display: grid;
    grid-template-columns: repeat(9, 38px);
    align-items: center;
    justify-items: center;
    height: 32px;
    white-space: nowrap;
    overflow-x: auto;
    column-gap: 20px;
  }
}

// content
.content {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px;
  background-color: #fff;
  .post {
    padding: 20px 0;
    &:not(:last-child) {
      border-bottom: 1px solid #eee;
    }
    .post-title {
      font-size: 16px;
      color: #1f1f1f;
      margin-bottom: 6px;
      line-height: 1.5;
    }
    .post-img {
      width: 100%;
      margin-bottom: 6px;
    }
    .post-detail {
      display: flex;
      align-items: center;
      .post-detail-hot {
        width: 16px;
        margin-right: 4px;
      }
      .post-detail-close {
        width: 16px;
        margin-left: auto;
      }
    }
  }
}

// tabbar
.tabbar {
  height: 40px;
  background-color: #f7f7f7;
  display: flex;
  justify-content: space-around;
  align-items: center;
  .tab-item {
    text-align: center;
    .iconfont {
      font-size: 16px;
      display: inline-block;
      margin-bottom: 2px;
    }
  }
}
